// Dom7
var $$ = Dom7;

// Framework7 App main instance
var app = new Framework7({
    root: '#app', // App root element
    id: 'io.framework7.testapp', // App bundle ID
    name: 'Framework7', // App name
    theme: 'auto', // Automatic theme detection
    // Enable swipe panel
    panel: {
        swipe: 'left',
    },
    view: {
        stackPages: true, // 路由跳转，多级页面缓存
        // pushState: true, // 开启 url 根据路由 hash 变化
    },
    // App routes
    routes: routes,
});

// // Init/Create main view
var mainView = app.views.create('.view-main', {
    url: '/'
});
var calendarDefault1 = app.calendar.create({
    inputEl: '#demo-calendar-default1',
});